
package com.echo.sdk.im.constant;

/**
 * @author chentl
 * @version V1.0
 * @Project IM-SDK
 * @Title CIMConstant.java
 * @Description CIM常量
 * @Package com.whdsj.sdk.im.server.constant
 * @date 2020/9/14 11:52 上午
 */
public interface CIMConstant {

    static int DEFAULT_PORT = 9001;

    String KEY_ACCOUNT = "account";

    String KEY_QUIETLY_CLOSE = "quietlyClose";

    String HEARTBEAT_KEY = "heartbeat";

    String CLIENT_HEARTBEAT = "client_heartbeat";

    String CLIENT_CONNECT_CLOSED = "client_closed";

    int SO_BACKLOG = 1024;

    interface ProtobufType {
        byte S_H_RQ = 1;
        byte C_H_RS = 0;
        byte MESSAGE = 2;
        byte REPLY_BODY = 4;
    }

    interface MessageAction {

        String ACTION_OFFLINE = "999";
    }
}
